import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/6/5
 * Time:11:59
 **/
public class Main1 {
    /**
     * 每日一题-解析密码
     *
     * @param args
     */
    //字符串拼接，也可使用StringBuffer
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String ret = "";
            for (int i = 0; i < s.length(); i++) {
                char ch = s.charAt(i);
                if (ch <= '9' && ch >= '0') {
                    ret += ch;
                }
            }
            System.out.println(ret);
        }
    }

    //直接输出拼接
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String str = sc.nextLine();
            for (int i = 0; i < str.length(); i++) {
                char ch = str.charAt(i);
                if (ch <= '9' && ch >= '0') {
                    System.out.print(ch);
                }
            }
            System.out.println();
        }
    }
}
